﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using BlawkayEngine;

namespace BlawkayHockey
{
    public class Arena
    {

        public Arena(Game oGame)
        {
            _Rink = new Rink(oGame, _RinkLong, _RinkWide);
            _Building = new Building(oGame, _RinkLong * 1.75f, _RinkWide * 2.75f);
        }

        public void Update(Game oGame, Camera oCamera)
        {
            _Building.Update(oCamera);
            _Rink.Update(oCamera);
        }

        public void DrawOpaque(Game oGame)
        {
            _Building.DrawOpaque(oGame);
            _Rink.DrawOpaque(oGame);
        }

        public void DrawAlpha(Game oGame)
        {
            _Rink.DrawAlpha(oGame);
        }



        public Rectangle Bounds()
        {
            return new Rectangle(-_RinkWide / 2, -_RinkLong / 2, _RinkWide, _RinkLong);
        }



        Building _Building;
        Rink _Rink;

        int _RinkWide = 200;
        int _RinkLong = 400;


    }
}
